package com.usian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 陈宇轩
 * @version 1.0
 * @date 2023/8/14 20:56
 */


@Data
@ToString
@TableName("train")
public class Train {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String photo;
    private String name;
    private String lid;
    private String people;
    private Integer jin;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date startdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date enddate;
    private Integer sort;
    private Integer status;
    private String jie;
    private String duixiang;
}
